//
//  FGNoticeActionViewController.m
//  Mi6App
//
//  Created by Mr.Lemon on 8/30/13.
//  Copyright (c) 2013 4G Secure. All rights reserved.
//

#import "FGNoticeActionViewController.h"

@interface FGNoticeActionViewController ()

@end

@implementation FGNoticeActionViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_common.png"]]];
    
    switch (self.action) {
        case 0:
            [self.imgMainNotice setImage:[UIImage imageNamed:@"Cloudie_Never_Message.png"]];
            break;
        case 1:
            [self.imgMainNotice setImage:[UIImage imageNamed:@"Cloudie_Maybe_Message.png"]];
            break;
        case 2:
            [self.imgMainNotice setImage:[UIImage imageNamed:@"Cloudie_Saved_Message.png"]];
            break;
            
        default:
            break;
    }
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidUnload {
    [self setImgMainNotice:nil];
    [super viewDidUnload];
}
- (IBAction)onBtnMenuClick:(id)sender {
    
    [self dismissModalViewControllerAnimated:YES];
    if(self.action==2)
        [[NSNotificationCenter defaultCenter] postNotificationName:@"go_to_your_voucher" object:nil];
}


@end
